package com.gopay.common.constants.cbrmb;

/**
 * @ClassName: CbRmb01720OptStep
 * @Description: 跨境进口交易操作阶段
 * @Author b.zou
 * @Date 2017-8-25
 */
public enum CbRmb01720OptStep {

    /**
     * 异步处理汇款拆分的账务
     */
    ASYNCHRONOUS("1");

    public final String value;

    private CbRmb01720OptStep(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return this.value;
    }

    /**
     * @Description: 根据枚举类型的字符串值 获取 相应的枚举变量
     * @param str
     * @return
     * @author huangcheng
     */
    public static CbRmb01720OptStep getCbRmb01720OptStep(String str) {
        CbRmb01720OptStep[] cs = CbRmb01720OptStep.class.getEnumConstants();
        for (CbRmb01720OptStep c : cs) {
            if (c.toString().equals(str)){
                return c;
            }
        }
        throw new RuntimeException(" wrong " + CbRmb01720OptStep.class.getSimpleName() + " string value! " + str);
    }

}
